package com.bee.beeModel.result;

/**
 * <p>
 * 返回的工具类
 * </p>
 *
 * @author 陈国松
 * @since 2022-07-21
 */
public class ResultTool {
    public static Result success() {
        return new Result(true);
    }

    public static <T> Result<T> success(T data) {
        return new Result(true, data);
    }

    public static Result fail() {
        return new Result(false);
    }

    public static Result fail(ResultCode resultEnum) {
        return new Result(false, resultEnum);
    }
}
